package com.tbit.uqbike.object.pojo.vo;

import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import lombok.experimental.Accessors;
import org.apache.commons.lang3.StringUtils;

/**
 * @author yee_
 * @version 1.0
 * @date 2023/4/10 15:42
 */
@Getter
@Setter
@ToString
@Accessors(chain = true)
public class AccountPathVO {

    /**
     * 品牌id
     */
    private Integer brandId;
    /**
     * 品牌名称
     */
    private String brandName;
    /**
     * 加盟商id
     */
    private Integer franchiseeId;
    /**
     * 加盟商名称
     */
    private String franchiseeName;
    /**
     * 运营区域id
     */
    private Integer regionId;
    /**
     * 运营区域名称
     */
    private String regionName;

    public String montageAccountPath() {
        if (StringUtils.isAnyBlank(regionName, franchiseeName, brandName)) {
            return "-";
        }
        return brandName.concat("/").concat(franchiseeName).concat("/").concat(regionName);
    }


}
